/*
 * <p>Copyright ®Alyce_WX版权所有。</p>
 * 类名:ViewUserLogPO
 * 创建人:alyce_wx
 * 创建时间:2017-03-30
 */
package com.wx.demo.wcd.domain.po;


import com.yjhl.framework.domain.po.PO;
import com.wx.demo.wcd.domain.pk.ViewUserLogPK;

/**
 * persistent class for ViewUserLog view
 * @author alyce_wx
 * @since 1.8
 * @version 1.0.0  
 */
 
public class ViewUserLogPO extends PO {
    private static final long serialVersionUID = 1L;

    /**
     * 日志表标识
     */
    private String logId;
    /**
     * 用户标识
     */
    private String userId;
    /**
     * 登录名
     */
    private String loginName;
    /**
     * 用户IP
     */
    private String userIp;
    /**
     * 浏览器版本
     */
    private String browserVersion;
    /**
     * 请求时间
     */
    private java.util.Date requestTime;
    /**
     * 请求地址
     */
    private String requestHost;
    /**
     * 操作说明
     */
    private String instruc;

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }

    public String getBrowserVersion() {
        return browserVersion;
    }

    public void setBrowserVersion(String browserVersion) {
        this.browserVersion = browserVersion;
    }

    public java.util.Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(java.util.Date requestTime) {
        this.requestTime = requestTime;
    }

    public String getRequestHost() {
        return requestHost;
    }

    public void setRequestHost(String requestHost) {
        this.requestHost = requestHost;
    }

    public String getInstruc() {
        return instruc;
    }

    public void setInstruc(String instruc) {
        this.instruc = instruc;
    }
    
    
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNull()
	 */
	@Override
    public boolean isNull(){
		return (		
    		logId == null     	
    		&&
    		userId == null     	
    		&&
    		loginName == null     	
    		&&
    		userIp == null     	
    		&&
    		browserVersion == null     	
    		&&
    		requestTime == null     	
    		&&
    		requestHost == null     	
    		&&
    		instruc == null     	
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isEmpty()
	 */
	@Override
    public boolean isEmpty(){
		return (		
    	logId == null 
    		&&
    	userId == null 
    		&&
    	loginName == null 
    		&&
    	userIp == null 
    		&&
    	browserVersion == null 
    		&&
    	requestTime == null 
    		&&
    	requestHost == null 
    		&&
    	instruc == null 
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkNull()
	 */
	@Override
    public boolean isNonPkNull(){
		return (		
    		logId == null     	
    		&&
    		loginName == null     	
    		&&
    		userIp == null     	
    		&&
    		browserVersion == null     	
    		&&
    		requestTime == null     	
    		&&
    		requestHost == null     	
    		&&
    		instruc == null     	
				);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkEmpty()
	 */
	@Override
    public boolean isNonPkEmpty(){
		return (		
    	logId == null 
    		&&
    	loginName == null 
    		&&
    	userIp == null 
    		&&
    	browserVersion == null 
    		&&
    	requestTime == null 
    		&&
    	requestHost == null 
    		&&
    	instruc == null 
				);
	}
	
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#buildPK()
	 */
	@Override
    public ViewUserLogPK buildPK(){
    	ViewUserLogPK entityPK = new ViewUserLogPK();
    	
		entityPK.setUserId( userId );
    	
    	return entityPK;
	}
	
	@Override
	public String toString(){
		
		String toString = "{";
		  	 if(this.logId != null){
		   	 	toString += (this.logId+",");
		   	 }
		  	 if(this.userId != null){
		   	 	toString += (this.userId+",");
		   	 }
		  	 if(this.loginName != null){
		   	 	toString += (this.loginName+",");
		   	 }
		  	 if(this.userIp != null){
		   	 	toString += (this.userIp+",");
		   	 }
		  	 if(this.browserVersion != null){
		   	 	toString += (this.browserVersion+",");
		   	 }
		  	 if(this.requestTime != null){
		   	 	toString += (this.requestTime+",");
		   	 }
		  	 if(this.requestHost != null){
		   	 	toString += (this.requestHost+",");
		   	 }
		  	 if(this.instruc != null){
		   	 	toString += (this.instruc+",");
		   	 }
		  if(toString.lastIndexOf(",") == ( toString.length()-1)){
		  	toString = toString.substring(0, toString.length()-1);
		  }
		 toString += "}";
		return toString;
		
	}
	
	public String inputDescription(){
		
		String inputDescription = "{";
		   if(this.logId != null){
		   		inputDescription += (this.logId+" : 日志表标识,");
		   }
		   if(this.userId != null){
		   		inputDescription += (this.userId+" : 用户标识,");
		   }
		   if(this.loginName != null){
		   		inputDescription += (this.loginName+" : 登录名,");
		   }
		   if(this.userIp != null){
		   		inputDescription += (this.userIp+" : 用户IP,");
		   }
		   if(this.browserVersion != null){
		   		inputDescription += (this.browserVersion+" : 浏览器版本,");
		   }
		   if(this.requestTime != null){
		   		inputDescription += (this.requestTime+" : 请求时间,");
		   }
		   if(this.requestHost != null){
		   		inputDescription += (this.requestHost+" : 请求地址,");
		   }
		   if(this.instruc != null){
		   		inputDescription += (this.instruc+" : 操作说明,");
		   }
		  if(inputDescription.lastIndexOf(",") == ( inputDescription.length()-1)){
		  	inputDescription = inputDescription.substring(0, inputDescription.length()-1);
		  }
		  inputDescription += "}";
		
		return inputDescription;
		
	}
	
	
}
